ac2a05
@@ -55,6 +55,14 @@
public class CamelInvoker implements Invoker, MessageInvoker {
         //TODO set the request context here
         CxfEndpoint endpoint = cxfConsumer.getEndpoint();
         CxfExchange cxfExchange = endpoint.createExchange(inMessage);
+        
+        BindingOperationInfo bop = exchange.get(BindingOperationInfo.class);
+        
+        if (bop != null && bop.getOperationInfo().isOneWay()) {
+            cxfExchange.setPattern(ExchangePattern.InOnly);
+        } else {
+            cxfExchange.setPattern(ExchangePattern.InOut);
+        }
         try {
             cxfConsumer.getProcessor().process(cxfExchange);
         } catch (Exception ex) {
